﻿# CMakeList.txt : CMake project for RaylibCMakeProject, include source and define
# project specific logic here.
#

# Add source to this project's executable.
add_executable (RaylibCMakeProject "RaylibCMakeProject.cpp" "RaylibCMakeProject.h")

if (CMAKE_VERSION VERSION_GREATER 3.12)
  set_property(TARGET RaylibCMakeProject PROPERTY CXX_STANDARD 20)
endif()

# TODO: Add tests and install targets if needed.

#set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /MTd")
#set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd")

include_directories(${PROJECT_SOURCE_DIR}/raylib/include)

# Link Windows socket libraries
target_link_libraries(RaylibCMakeProject ws2_32.lib gdi32.lib advapi32.lib crypt32.lib winmm.lib)
target_link_libraries(RaylibCMakeProject ${PROJECT_SOURCE_DIR}/raylib/lib/raylib.lib)
